
<?php
require_once '../config/config.php';

$connection = mysql_connect(DB_HOST . ":" . DB_PORT, DB_USER, DB_PASS) or die(mysql_error());
mysql_select_db(DB_NAME, $connection);


$query = "SELECT * FROM pages LIMIT 0,50";
$data = mysql_query($query, $connection);

?>
<table class="bang" >
    <tr>
        <td class="pids">pin</td>
        <td class="ids">id</td>
        <td class="names">name</td>    
        <td class="users">username</td>
        <td class="phones">phone</td>
        <td class="likess">likes</td>

    </tr>

    
    <?php if (isset($_POST['submit'])): ?>
    <?php $keyword = (double) $_POST['keyword']; ?>
    <?php $ratingMin = (double) $_POST['ratingMin']; ?>
    <?php $ratingMax = (double) $_POST['ratingMax']; ?>
<?php endif; ?>
    <?php
    while ($row = mysql_fetch_assoc($data)) {
        ?>
        <link rel="stylesheet" href="../public/css/styles.css" type="text/css">
        <tr>
            <td class="pid"><?php echo $row["pid"]; ?></td>
            <td class="id"><?php echo $row["id"]; ?></td>
            <td class="name"><?php echo $row["name"]; ?></td>    
            <td class="user"><?php echo $row["username"]; ?></td>
            <td class="phone"><?php echo $row["phone"]; ?></td>
            <td class="likes"><?php echo $row["likes"]; ?></td>
        </tr>

<?php } ?>
</table>